package com.cgw.dmplt.room.dao;

import java.util.List;
import com.cgw.dmplt.room.domain.Building;


/**
 *
 */
public interface BuildingDao {
    /**
     * insert.
     * @param building building
     * @return id
     */
    String insertBuilding(Building building) ;

    /**
     * delete.
     * @param building building

     */
    void deleteBuilding(Building building) ;
    
    /**
     * update.
     * @param building building
     */
    void updateBuilding(Building building) ;

    /**
     * find.
     * @param id id
     * @return building
     */
    Building findBuilding(Integer id) ;
    
    /**
     * list.
     * @param building building
     * @return building list
     */
    List listBuilding(Building building) ;
    
    /**
     * listCount.
     * @param building building
     * @return list count
     */
    Integer listBuildingCount(Building building) ;
}
